package com.fc.redap.service.impl;

import com.fc.redap.dao.BaseDao;
import com.fc.redap.dao.RegionDao;
import com.fc.redap.entity.RegionEntity;
import com.fc.redap.service.IRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("regionService")
public class RegionServiceImpl extends BaseServiceImpl<RegionEntity> implements IRegionService{

    @Autowired
    private RegionDao regionDao;

    @Override
    public BaseDao getDao() {
        return regionDao;
    }

    @Override
    public List<RegionEntity> queryByNames(List<String> cityNames) {return regionDao.queryByNames(cityNames);}
}
